﻿using EnvDTE;
using EnvDTE80;
namespace ClassMetadataBrowser.Domain.Metadata
{
	public class EventMetadata : MetadataObjectBase
	{
		protected override void CodeElementSet(CodeElement element)
		{
			CodeEvent ev = (CodeEvent)element;
			SetAccess(ev.Access);
			AttributesCount = ev.Attributes == null ? 0 : ev.Attributes.Count;
		}

		public override void Accept(IMetadataVisitor visitor)
		{
			visitor.Visit(this);
		}
	}
}
